----------- 
-- Author: Bojun Chen
-- Date: 2021-09-14 16:21:13
-- Desc: 基础状态转换，定义转换使用到的属性和方法
----------- 



local BaseTransition = class("BaseTransition")

--[[
    @desc: 构造函数
    author:Bojun Chen
    time:2021-09-14 16:24:12
    --@fromState: 转换起始状态
	--@toState: 转换目标状态
    @return:
]]
function BaseTransition:ctor(fromState, toState)
    self.fromState = fromState
    self.toState = toState
    self.from = fromState.name
    self.to = toState.name
    self.name = string.format('%s_2_%s', self.from, self.to)
end

--[[
    @desc: 转换检测中
    author:Bojun Chen
    time:2021-09-14 16:23:03
    @return:
]]
function BaseTransition:OnCheck()
    return true
end

--[[
    @desc: 转换完成
    author:Bojun Chen
    time:2021-09-14 16:23:13
    @return:
]]
function BaseTransition:OnCompleteCallBack()
    return true
end

return  BaseTransition